package com.tianjipms.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("sys_notice")
public class Notice {
    private static final long serialVersionUID = 1L;
    /**
     * 公告编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 发布时间
     */
    @TableField(value = "send_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;
    /**
     * 公告标题
     */
    private String title;
    /**
     * 公告内容
     */
    private String message;
    /**
     *发布者
     */
    private Integer sendUid;
    /**
     *接收者(0-所有人,其他为对应人id)
     */
    private Integer receiveUid;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getReceiveUid() {
        return receiveUid;
    }

    public void setReceiveUid(Integer receiveUid) {
        this.receiveUid = receiveUid;
    }
}
